package homework;

import java.util.Scanner;

public class Homework2 {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		String str;
		do{
			System.out.println("请输入长度为6的字符串：");
			str = input.next();
		}while (str.length() != 6);
		System.out.println("程序退出，你输入了：" + str);
	}
}
